package catalina;

import java.io.IOException;

/**
 * @ClassName StandardContext
 * @Description TODO
 * @Auth ying.xiao
 * @Date 2021/3/11
 * @Version 1.0.0
 */
public class StandardContext implements Context {

    private String docBase;

    private String path;

    public StandardContext(String docBase, String path) {
        this.docBase = docBase;
        this.path = path;
    }

    public String getDocBase() {
        return docBase;
    }


    @Override
    public void service(Request request, Response response) throws IOException {
        request.getMapperData().getWrapper().service(request,response);
    }
}
